package com.foreveross.fetl.core.domain.freight;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.foreveross.fetl.common.domain.BaseEntity;
@Entity
@Table(name="freight_monitor")
public class FreightMonitor extends BaseEntity{
	private static final long serialVersionUID = 2092494645569326354L;
	@Id private String id;//java 生成uuid
	@Column private String flightNo;
	@Column private Date flightDate;
	@Column private Date grabDate;
	@Column private Date createDate;
	@Column private int grabNum;
	@Column private int cabinNum;
	@Column private int cabinNumForAdd;
	@Column private int cabinNumForDel;
	@Column private Double lowerPrice;
	@Column private Double heightPrice;
	@Column private String grabChannel;
	@Column private String grabChannelKey;
	@Column private String fromCity;
	@Column private String toCity;
	@Column private String toCityName;
	@Column private String fromCityName;
	@Column private int type;
	public FreightMonitor() {
		super();
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public FreightMonitor(String id, String flightNo, Date flightDate,
			Date grabDate, int type,int grabNum, int cabinNum, int cabinNumForAdd,
			int cabinNumForDel, Double lowerPrice, Double heightPrice,
			String grabChannel, String grabChannelKey, String fromCity,
			String toCity, String toCityName, String fromCityName) {
		super();
		this.id = id;
		this.type = type; 
		this.flightNo = flightNo;
		this.flightDate = flightDate;
		this.grabDate = grabDate;
		this.setCreateDate(new Date());
		this.grabNum = grabNum;
		this.cabinNum = cabinNum;
		this.cabinNumForAdd = cabinNumForAdd;
		this.cabinNumForDel = cabinNumForDel;
		this.lowerPrice = lowerPrice;
		this.heightPrice = heightPrice;
		this.grabChannel = grabChannel;
		this.grabChannelKey = grabChannelKey;
		this.fromCity = fromCity;
		this.toCity = toCity;
		this.toCityName = toCityName;
		this.fromCityName = fromCityName;
	}

	public String getGrabChannelKey() {
		return grabChannelKey;
	}

	public void setGrabChannelKey(String grabChannelKey) {
		this.grabChannelKey = grabChannelKey;
	}

	public String getFlightNo() {
		return flightNo;
	}
	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}
	public Date getFlightDate() {
		return flightDate;
	}
	public void setFlightDate(Date flightDate) {
		this.flightDate = flightDate;
	}
	public Date getGrabDate() {
		return grabDate;
	}
	public void setGrabDate(Date grabDate) {
		this.grabDate = grabDate;
	}
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getGrabNum() {
		return grabNum;
	}
	public void setGrabNum(int grabNum) {
		this.grabNum = grabNum;
	}
	public int getCabinNum() {
		return cabinNum;
	}
	public void setCabinNum(int cabinNum) {
		this.cabinNum = cabinNum;
	}
	public int getCabinNumForAdd() {
		return cabinNumForAdd;
	}

	public void setCabinNumForAdd(int cabinNumForAdd) {
		this.cabinNumForAdd = cabinNumForAdd;
	}

	public int getCabinNumForDel() {
		return cabinNumForDel;
	}

	public void setCabinNumForDel(int cabinNumForDel) {
		this.cabinNumForDel = cabinNumForDel;
	}

	public Double getLowerPrice() {
		return lowerPrice;
	}
	public void setLowerPrice(Double lowerPrice) {
		this.lowerPrice = lowerPrice;
	}
	public Double getHeightPrice() {
		return heightPrice;
	}
	public void setHeightPrice(Double heightPrice) {
		this.heightPrice = heightPrice;
	}
	public String getGrabChannel() {
		return grabChannel;
	}
	public void setGrabChannel(String grabChannel) {
		this.grabChannel = grabChannel;
	}
	public String getFromCity() {
		return fromCity;
	}
	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}
	public String getToCity() {
		return toCity;
	}
	public void setToCity(String toCity) {
		this.toCity = toCity;
	}
	public String getToCityName() {
		return toCityName;
	}
	public void setToCityName(String toCityName) {
		this.toCityName = toCityName;
	}
	public String getFromCityName() {
		return fromCityName;
	}
	public void setFromCityName(String fromCityName) {
		this.fromCityName = fromCityName;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
}
